Optimal. Leaf size=130 \[ i a \text{PolyLog}\left (2,-\frac{i \sqrt{1-a x}}{\sqrt{a x+1}}\right )-i a \text{PolyLog}\left (2,\frac{i \sqrt{1-a x}}{\sqrt{a x+1}}\right )-\frac{\sqrt{1-a^2 x^2} \tanh ^{-1}(a x)}{x}-a \tanh ^{-1}\left (\sqrt{1-a^2 x^2}\right )+2 a \tan ^{-1}\left (\frac{\sqrt{1-a x}}{\sqrt{a x+1}}\right ) \tanh ^{-1}(a x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.162952, antiderivative size = 130, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.273, Rules used = {6014, 6008, 266, 63, 208, 5950} \[ i a \text{PolyLog}\left (2,-\frac{i \sqrt{1-a x}}{\sqrt{a x+1}}\right )-i a \text{PolyLog}\left (2,\frac{i \sqrt{1-a x}}{\sqrt{a x+1}}\right )-\frac{\sqrt{1-a^2 x^2} \tanh ^{-1}(a x)}{x}-a \tanh ^{-1}\left (\sqrt{1-a^2 x^2}\right )+2 a \tan ^{-1}\left (\frac{\sqrt{1-a x}}{\sqrt{a x+1}}\right ) \tanh ^{-1}(a x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6014
Rule 6008
Rule 266
Rule 63
Rule 208
Rule 5950
Rubi steps
\begin{align*} \int \frac{\sqrt{1-a^2 x^2} \tanh ^{-1}(a x)}{x^2} \, dx &=-\left (a^2 \int \frac{\tanh ^{-1}(a x)}{\sqrt{1-a^2 x^2}} \, dx\right )+\int \frac{\tanh ^{-1}(a x)}{x^2 \sqrt{1-a^2 x^2}} \, dx\\ &=-\frac{\sqrt{1-a^2 x^2} \tanh ^{-1}(a x)}{x}+2 a \tan ^{-1}\left (\frac{\sqrt{1-a x}}{\sqrt{1+a x}}\right ) \tanh ^{-1}(a x)+i a \text{Li}_2\left (-\frac{i \sqrt{1-a x}}{\sqrt{1+a x}}\right )-i a \text{Li}_2\left (\frac{i \sqrt{1-a x}}{\sqrt{1+a x}}\right )+a \int \frac{1}{x \sqrt{1-a^2 x^2}} \, dx\\ &=-\frac{\sqrt{1-a^2 x^2} \tanh ^{-1}(a x)}{x}+2 a \tan ^{-1}\left (\frac{\sqrt{1-a x}}{\sqrt{1+a x}}\right ) \tanh ^{-1}(a x)+i a \text{Li}_2\left (-\frac{i \sqrt{1-a x}}{\sqrt{1+a x}}\right )-i a \text{Li}_2\left (\frac{i \sqrt{1-a x}}{\sqrt{1+a x}}\right )+\frac{1}{2} a \operatorname{Subst}\left (\int \frac{1}{x \sqrt{1-a^2 x}} \, dx,x,x^2\right )\\ &=-\frac{\sqrt{1-a^2 x^2} \tanh ^{-1}(a x)}{x}+2 a \tan ^{-1}\left (\frac{\sqrt{1-a x}}{\sqrt{1+a x}}\right ) \tanh ^{-1}(a x)+i a \text{Li}_2\left (-\frac{i \sqrt{1-a x}}{\sqrt{1+a x}}\right )-i a \text{Li}_2\left (\frac{i \sqrt{1-a x}}{\sqrt{1+a x}}\right )-\frac{\operatorname{Subst}\left (\int \frac{1}{\frac{1}{a^2}-\frac{x^2}{a^2}} \, dx,x,\sqrt{1-a^2 x^2}\right )}{a}\\ &=-\frac{\sqrt{1-a^2 x^2} \tanh ^{-1}(a x)}{x}+2 a \tan ^{-1}\left (\frac{\sqrt{1-a x}}{\sqrt{1+a x}}\right ) \tanh ^{-1}(a x)-a \tanh ^{-1}\left (\sqrt{1-a^2 x^2}\right )+i a \text{Li}_2\left (-\frac{i \sqrt{1-a x}}{\sqrt{1+a x}}\right )-i a \text{Li}_2\left (\frac{i \sqrt{1-a x}}{\sqrt{1+a x}}\right )\\ \end{align*}
Mathematica [A] time = 0.345885, size = 121, normalized size = 0.93 \[ a \left (i \text{PolyLog}\left (2,-i e^{-\tanh ^{-1}(a x)}\right )-i \text{PolyLog}\left (2,i e^{-\tanh ^{-1}(a x)}\right )-\frac{\sqrt{1-a^2 x^2} \tanh ^{-1}(a x)}{a x}+i \tanh ^{-1}(a x) \log \left (1-i e^{-\tanh ^{-1}(a x)}\right )-i \tanh ^{-1}(a x) \log \left (1+i e^{-\tanh ^{-1}(a x)}\right )+\log \left (\tanh \left (\frac{1}{2} \tanh ^{-1}(a x)\right )\right )\right ) \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.289, size = 188, normalized size = 1.5 \begin{align*} -{\frac{{\it Artanh} \left ( ax \right ) }{x}\sqrt{- \left ( ax-1 \right ) \left ( ax+1 \right ) }}+ia\ln \left ( 1+{i \left ( ax+1 \right ){\frac{1}{\sqrt{-{a}^{2}{x}^{2}+1}}}} \right ){\it Artanh} \left ( ax \right ) -ia\ln \left ( 1-{i \left ( ax+1 \right ){\frac{1}{\sqrt{-{a}^{2}{x}^{2}+1}}}} \right ){\it Artanh} \left ( ax \right ) +ia{\it dilog} \left ( 1+{i \left ( ax+1 \right ){\frac{1}{\sqrt{-{a}^{2}{x}^{2}+1}}}} \right ) -ia{\it dilog} \left ( 1-{i \left ( ax+1 \right ){\frac{1}{\sqrt{-{a}^{2}{x}^{2}+1}}}} \right ) +a\ln \left ({(ax+1){\frac{1}{\sqrt{-{a}^{2}{x}^{2}+1}}}}-1 \right ) -a\ln \left ( 1+{(ax+1){\frac{1}{\sqrt{-{a}^{2}{x}^{2}+1}}}} \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{-a^{2} x^{2} + 1} \operatorname{artanh}\left (a x\right )}{x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{\sqrt{-a^{2} x^{2} + 1} \operatorname{artanh}\left (a x\right )}{x^{2}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{- \left (a x - 1\right ) \left (a x + 1\right )} \operatorname{atanh}{\left (a x \right )}}{x^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{-a^{2} x^{2} + 1} \operatorname{artanh}\left (a x\right )}{x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]